package com.bjsxt.shop.goods.pojo;

import java.io.Serializable;
import java.util.Date;

import com.bjsxt.shop.goods.pojo.AGoods;

/**
 * 购物车的POJO
 * 用户的购物车放在了goods里面，因为goods-api依赖了users-api，如果放在用户里面这个表还需要依赖users-api
 * 是不允许这样的，所以要把AUsersCar放在pojo里面
 * @author wangshSxt
 *
 */
public class AUsersCar implements Serializable
{
	private int id;
	private int usersId;
	private int goodsId;
	private int num;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	/* 关联关系
	 * 一个用户的购物车表示一个条目，goodsid和usersid是一个联合主键
	 * 在这里一个用户车里面应该放一个货物，把它看成一个条目，每一个条目里面放一个货物 */
	private AGoods goods ; 

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getUsersId()
	{
		return usersId;
	}

	public void setUsersId(int usersId)
	{
		this.usersId = usersId;
	}

	public int getGoodsId()
	{
		return goodsId;
	}

	public void setGoodsId(int goodsId)
	{
		this.goodsId = goodsId;
	}

	public int getNum()
	{
		return num;
	}

	public void setNum(int num)
	{
		this.num = num;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getPubTime()
	{
		return pubTime;
	}

	public void setPubTime(Date pubTime)
	{
		this.pubTime = pubTime;
	}

	public AGoods getGoods()
	{
		return goods;
	}

	public void setGoods(AGoods goods)
	{
		this.goods = goods;
	}

}
